package levelup;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class FormListener implements ActionListener {
	@Override
	public void actionPerformed(ActionEvent e) {

		String text = new String();
		text = ("first = " + FormDemo.first.getText() + "; last = "
				+ FormDemo.last.getText() + "; phone = "
				+ FormDemo.phone.getText() + ";\n");
		WriteFile.write(FormDemo.path.getText(), text);
	}
}
